﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewsList.aspx.cs" Inherits="Maticsoft.Web.NewsList" %>

<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/img/icon.png" rel="icon" type="images/png" sizes="16*16" />
    <title></title>
    <link rel="stylesheet" href="css/reset.css" />
    <link rel="stylesheet" href="css/common.css" />
    <style type="text/css">
        .pages
        {
            color: #999;
            overflow: auto;
        }
        .pages a, .pages .cpb
        {
            text-decoration: none;
            float: left;
            padding: 8px;
            border: 1px solid #ddd;
            background: #ffff;
            margin: 0 2px;
            font-size: 11px;
            color: #000;
        }
        .pages a:hover
        {
            background-color: #E61636;
            color: #fff;
            border: 1px solid #E61636;
            text-decoration: none;
        }
        .pages .cpb
        {
            font-weight: bold;
            color: #fff;
            background: #E61636;
            border: 1px solid #E61636;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:Header ID="Header1" runat="server" />
    <div class="row bg-garay mar-btm-30">
        <div class="safe_width">
            <div class="adr-box">
                <a href="default.aspx" class="fs-14">首页</a><%=nav %>
            </div>
        </div>
    </div>
    <div class="row bg-white">
        <div style="width: 1000px; margin: 0px auto; line-height: 25px; font-size: 12px;">
            <ul>
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <li><span style="float: right;">
                            <%#Convert.ToDateTime(Eval("CreateTime")).ToString("yyyy-MM-dd HH:mm")%></span><img
                                src="img/dropdown-bg.png" alt="" />
                            <a href="NewsDetail.aspx?cid=<%#Eval("ChannelId") %>&id=<%#Eval("NewsId") %>" target="_blank">
                                <%#Eval("title") %></a></li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div class="page-no mar-top-20">
            <webdiyer:AspNetPager ID="AspNetPager1" CssClass="pages" CurrentPageButtonClass="cpb"
                runat="server" UrlPaging="true" HorizontalAlign="center" PageSize="16" EnableTheming="true"
                OnPageChanging="AspNetPager1_PageChanging">
            </webdiyer:AspNetPager>
        </div>
    </div>
    <uc2:footer ID="footer1" runat="server" />
    </form>
</body>
</html>
